<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  data () {
    return {
      config: {
        header: ['租户企业', '用户名', '手机号', '访问服务', '访问时间'],
        data: [
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
          ['A租户', '张三', '13612341234', 'HRIS', '2019-07-01 19:25:00'],
        ],
        index: true,
        columnWidth: [80, 120, 150, 120, 160],
        align: ['center'],
        rowNum: 7,
        headerBGC: '#1981f6',
        headerHeight: 45,
        oddRowBGC: 'rgba(0, 44, 81, 0.8)',
        evenRowBGC: 'rgba(10, 29, 50, 0.8)'
      }
    }
  }
}
</script>

<style lang="less">
#scroll-board {
  width: 50%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
